<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改案例设置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-autocase-edit" th:object="${autocase}">
            <input id="caseNo" name="caseNo" th:field="*{caseNo}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">案例种类：</label>
				<div class="col-sm-8">
					<input id="caseType" name="caseType" th:field="*{caseType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">测试天数：</label>
				<div class="col-sm-8">
					<input id="days" name="days" th:field="*{days}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">案例名称：</label>
				<div class="col-sm-8">
					<input id="caseName" name="caseName" th:field="*{caseName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">案例说明：</label>
				<div class="col-sm-8">
					<input id="caseDisc" name="caseDisc" th:field="*{caseDisc}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">设置人员：</label>
				<div class="col-sm-8">
					<input id="empCode" name="empCode" th:field="*{empCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createdate" name="createdate" th:field="*{createdate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">关键字备注：</label>
				<div class="col-sm-8">
					<input id="keywordDesc" name="keywordDesc" th:field="*{keywordDesc}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/autocase";
		$("#form-autocase-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-autocase-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
